package cz.myslivec.slovicka.xml.model;

import java.math.BigDecimal;
import java.util.Date;

import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;

@XmlRootElement(name="testedVocable")
@XmlType(name="testedVocable")
public class TestedVocableDTO {

	private Long id;
	
	private Long vocableId;
	
	private Date testDate;
	
	private Integer successLevel;

	private Date nextTestDate;
	
	private BigDecimal eFactor;
	
	private Integer testCount;
	
	private Integer testInterval;
	
	public TestedVocableDTO() {
		super();
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Long getVocableId() {
		return vocableId;
	}

	public void setVocableId(Long vocableId) {
		this.vocableId = vocableId;
	}

	public Date getTestDate() {
		return testDate;
	}

	public void setTestDate(Date testDate) {
		this.testDate = testDate;
	}

	public Integer getSuccessLevel() {
		return successLevel;
	}

	public void setSuccessLevel(Integer successLevel) {
		this.successLevel = successLevel;
	}

	public Date getNextTestDate() {
		return nextTestDate;
	}

	public void setNextTestDate(Date nextTestDate) {
		this.nextTestDate = nextTestDate;
	}

	public BigDecimal geteFactor() {
		return eFactor;
	}

	public void seteFactor(BigDecimal eFactor) {
		this.eFactor = eFactor;
	}

	public Integer getTestCount() {
		return testCount;
	}

	public void setTestCount(Integer testCount) {
		this.testCount = testCount;
	}

	public Integer getTestInterval() {
		return testInterval;
	}

	public void setTestInterval(Integer testInterval) {
		this.testInterval = testInterval;
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((id == null) ? 0 : id.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		TestedVocableDTO other = (TestedVocableDTO) obj;
		if (id == null) {
			if (other.id != null)
				return false;
		} else if (!id.equals(other.id))
			return false;
		return true;
	}
}

